import { createBrowserRouter, Navigate } from 'react-router-dom';
import App from '../App';
import ShelvesManagement from '../views/Shelves/ShelvesManagement';
import ShelvesOverview from '../views/Shelves/ShelvesOverview';
import ProductTable from '../views/Product/ProductTable';

const router = createBrowserRouter([
  {
    path: '/',
    element: <App />,
    children: [
      {
        path: '',
        element: <Navigate to="/products" replace />
      },
      {
        path: 'products',
        element: <ProductTable />,
      },
      {
        path: 'shelves',
        element: <ShelvesManagement />,
      },
      {
        path: 'shelves-overview',
        element: <ShelvesOverview />,
      }
    ]
  }
]);

export default router; 